﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace Tesla.Web
{
    public class ControlBase :  UserControl
    {
        public void SetSession(string key, object value)
        {
            Session[key] = value;
        }

        public object GetSession(string key)
        {
            if (Session[key] == null)
                throw new Exception("Session Timeout occurred");
            return Session[key];
        }
    }
}
